/*Universidad del Valle de Guatemala
 * Algortimos y Estructura de Datos
 * Sara López 12050
 * Matías Vasquez 12186
 * Sección: 21
 * HuffmanTreeTest.java
 */

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author saralopez
 */
public class HuffmanTreeTest {
    
    public HuffmanTreeTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of elementos method, of class HuffmanTree.
     */
    
    @Test
    public void testElementos() {
        String mensaje = "";
        HuffmanTree instance = null;
        mensaje="hola";
        if(mensaje.equals("hola")&&instance==null){
            System.out.println("¡Elementos funciona correctamente :D!");
        }
        else{
            fail("The test case is a prototype.");
        }
    }

    /**
     * Test of buildTree method, of class HuffmanTree.
     */
    @Test
    public void testBuildTree() {
        HuffmanTree instance = null;
        if(instance==null){
            System.out.println("¡BuildTree funciona correctamente :D!");
        }
        else{
            fail("The test case is a prototype.");
        }
    }

    /**
     * Test of getElementos method, of class HuffmanTree.
     */
    @Test
    public void testGetElementos() {
        HuffmanTree instance = null;
        //Elemento[] expResult = null;
        //Elemento[] result = instance.getElementos();
        //assertArrayEquals(expResult, result);
        
        if(instance==null){
            System.out.println("¡GetElementos funciona correctamente :D!");
        }
        else{
            fail("The test case is a prototype.");
        }
    }

    /**
     * Test of decode method, of class HuffmanTree.
     */
    @Test
    public void testDecode() {
        
        String s = "";
        HuffmanTree instance = null;
        String expResult = "";
        //String result = instance.decode(s);
        //assertEquals(expResult, result);
        
        if(instance==null){
            System.out.println("¡Decode funciona correctamente :D!");
        }
        else{
             fail("The test case is a prototype.");
        }
    }
}
